package cn.shujuhai.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 角色权限关联表
 *
 * @TableName sys_role_permission
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_role_permission")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysRolePermission extends BaseDomain {
    @TableId(type = IdType.AUTO)
    private Long rolePermissionId;
    private Long roleId;

    private Long permissionId;
}